|
|
|
| TABLE 14.6. VISUAL BASIC FEATURES NOT SUPPORTED IN VBSCRIPT 2.0. | | Category | Feature or Keyword | | Array handling | Option Base, declaring arrays with lower-bound <>0 | | Collection | Add, Count, Item, Remove, access to collections by using ! character | | Conditional compilation | #Const, #IfThen#Else | | Control flow | DoEvents, GoSubReturn, GoTo, On Error GoTo, OnGoSub, OnGoTo, line numbers, line labels, WithEnd With | | Conversion | CVar, CVDate, Str, Val | | Data types | All intrinsic data types except Variant, TypeEnd Type | | Date/time | Date statement, Time statement, Timer | | DDE | LinkExecute, LinkPoke, LinkRequest, LinkSend | | Debugging | Debug.Print, End, Stop | | Declaration | Declare (for declaring DLLs), Property Get, Property Let, Property Set, Public, Private, Static, ParamArray, Optional, New | | Error handling | Erl, Error, On ErrorResume, Resume, Resume Next | | File input/output | All | | Financial | All financial functions | | Object manipulation | TypeOf | | Objects | Clipboard, Collection | | Operators | Like | | Options | Deftype, Option Base, Option Compare, Option Private Module | | Strings | Fixed-length strings, LSet, Rset, Mid statement, StrConv | | Using objects | Collection access by using ! |
|
|
|
|
|
|
Don't worry if the list seems long. The most important features of Visual Basic are included in VBScript, so you still can write powerful scripts. The only difference is that now you have to be more inventive when designing the code. You may find that some tricks you invent to overcome these limitations are so good that you want to use them in your normal Visual Basic applications. |
|
|
|
|
|
|
|
|
Adding VBScript to an HTML Page |
|
|
|
|
|
|
|
|
To see how VBScript works, look at what you have to add to a Web page to make it perform some processing. To use VBScript in your Web page, you must add some HTML code that tells the browser that your Web page contains script code. VBScript also doesn't support the forms you're accustomed to using in Visual Basic, meaning that your |
|
|
|
|
|